package com.bbzn.user.client.enums;

import lombok.Getter;

/**
 * Created by 廖师兄
 * 2017-12-10 17:32
 */
@Getter
public enum ResultEnum {
    HTTP_RES_0(0,"请求成功"),
    HTTP_RES_1(1,"请求成功，响应异常"),
    LOGIN_FAIL(2, "登录失败"),
    ROLE_ERROR(3, "角色权限有误"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限"),
    HTTP_RES_500(500,"请求失败"),

    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
